<template>
  <view>
    <!-- 向子组件传递属性 title 和 count -->
    <child-component :title="parentTitle" :count="5"></child-component>
  </view>
</template>

<script>
import ChildComponent from './Child.vue';

export default {
  components: {
    ChildComponent
  },
  data() {
    return {
      parentTitle: '我是父级'
    }
  }
}
</script>